services.AddSingleton<ICacheProvider>(provider => new RedisCacheProvider("myPrettyLocalhost:6379")); services.AddSingleton<ICacheProvider>(new RedisCacheProvider("myPrettyLocalhost:6379"));